// Import Vue
import Vue from 'vue';

// Import F7
import Framework7 from 'framework7/dist/framework7.esm.bundle.js';

// Import F7 Vue Plugin
import Framework7Vue from 'framework7-vue/dist/framework7-vue.esm.bundle.js';

// Import F7 Styles
import Framework7Styles from 'framework7/dist/css/framework7.css';

// Import Icons and App Custom Styles
import IconsStyles from './css/icons.css';
import AppStyles from './css/app.css';

// Import Routes
import Routes from './routes.js'

// Import App Component
import App from './app';


import axios from 'axios'
// Init F7 Vue Plugin
Vue.use(Framework7Vue, Framework7)
Vue.prototype.$ajax = axios

// Init App
new Vue({
  el: '#app',
  template: '<app/>',
  // Init Framework7 by passing parameters here
  framework7: {
    id: 'io.afu.zxs', // App bundle ID
    name: '追小说', // App name
    theme: 'auto', // Automatic theme detection
    // App routes
    routes: Routes,
    touch:{
      fastClicks:true,
      tapHold:true,
      tapHoldDelay:750
    }
  },
  // Register App Component
  components: {
    app: App
  }
});
